// pages/rank/rank.js
Page({
  data: {
    dataList: [] 
  },

  onLoad: function(options) {
    this.initRankData();
  },

  initRankData: function() {
    const mockData = [
      {
        avatar_url: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.dByHGlYCnbCcs-yMluLNTwHaHa?w=173&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7',
        name: '胡萝卜',
        total_fee: 150,
        rank: 1
      },
      {
        avatar_url: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.yxjhkeER4XKxH-gB5ag-hAHaHa?w=178&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7',
        name: '西兰花',
        total_fee: 120,
        rank: 2
      },
      {
        avatar_url: 'https://tse2-mm.cn.bing.net/th/id/OIP-C.GEoP0ka4W02Y6zYOO7NAawHaFf?w=230&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7',
        name: '西红柿',
        total_fee: 90,
        rank: 3
      },
      {
        avatar_url: 'https://tse4-mm.cn.bing.net/th/id/OIP-C.NmXMRoLbbgiAoyYLweOt-QHaGY?w=219&h=189&c=7&r=0&o=5&dpr=1.3&pid=1.7',
        name: '梨',
        total_fee: 70,
        rank: 4
      },
      {
        avatar_url: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.mC4brS0ziwFVlauwyv7SRAAAAA?w=250&h=195&c=7&r=0&o=5&dpr=1.3&pid=1.7',
        name: '菠菜',
        total_fee: 50,
        rank: 5
      }
    ];
    this.setData({
      dataList: mockData
    });
  }
});